<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title>
            <?php echo ($title); ?>
        </title>
        <meta name="renderer" content="webkit">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
        <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
        <meta name="apple-mobile-web-app-status-bar-style" content="black">
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="format-detection" content="telephone=no">
        <link rel="stylesheet" href="/task/laybbs/Public/css/x-admin.css" media="all">
        <script src="/task/laybbs/Public/jquery-3.1.1.min.js" charset="utf-8"></script>
        <script src="/task/laybbs/Public/lib/layui/layui.js" charset="utf-8"></script>
        <script src="/task/laybbs/Public/js/x-layui.js" charset="utf-8"></script>
        <script src="/task/laybbs/Public/js/x-admin.js"></script>
    </head>
    <body>
    <div class="x-body">
        <blockquote class="layui-elem-quote">
            欢迎使用仿layUI社区后台管理系统
        </blockquote>
        <p>登录次数：<?php echo ($login_time); ?> </p>
        <p>上次登录IP：<?php echo ($last_login['ip']); ?></p>
        <p>上次登录时间： <?php echo ($last_login['time']); ?></p>
        <fieldset class="layui-elem-field layui-field-title site-title">
        <legend><a name="default">信息统计</a></legend>
        </fieldset>
        <table class="layui-table">
            <thead>
                <tr>
                    <th>统计</th>
                    <th>用户</th>
                    <th>管理员</th>
                </tr>
            </thead>
            <tbody>
                <tr>
                    <td>总数</td>
                    <td><?php echo ($users); ?></td>
                    <td><?php echo ($admins); ?></td>
                </tr>
            </tbody>
        </table>
        <table class="layui-table">
            <thead>
                <tr>
                    <th colspan="2" scope="col">服务器信息</th>
                </tr>
            </thead>
            <tbody>
                <?php foreach ($server_info as $sik => $siv): ?>
                    <tr>
                        <th width="30%"><?php echo ($sik); ?></th>
                        <td><?php echo ($siv); ?></td>
                    </tr>
                <?php endforeach ?>
            </tbody>
        </table>
    </div>
    <div class="layui-footer footer footer-demo">
        <div class="layui-main">
            <p>感谢layui,百度Echarts,jquery</p>
            <p>
                <a href="/">
                    Copyright ©2017 x-admin v2.3 All Rights Reserved.
                </a>
            </p>
            <p>
                <a href="./" target="_blank">
                    本后台系统由X前端框架提供前端技术支持
                </a>
            </p>
        </div>
    </div>
    <script src="/task/laybbs/Public/lib/layui/layui.js" charset="utf-8"></script>
    <script src="/task/laybbs/Public/js/x-admin.js"></script>
</body>
</html>